# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=aura-browser
pkgver=0_git20210423
pkgrel=4
_commit="e93d8de146384697bf586346488395680a1dd217"
pkgdesc="Browser for a fully immersed Big Screen experience allowing you to navigate the world wide web using just your remote control"
url="https://invent.kde.org/plasma-bigscreen/aura-browser"
# armhf blocked by extra-cmake-modules
# s390x, ppc64le and riscv64 blocked by qt5-qtwebengine
arch="all !armhf !s390x !ppc64le !riscv64"
license="GPL-2.0-or-later"
depends="
	kirigami2
	qt5-qtvirtualkeyboard
	"
makedepends="
	extra-cmake-modules
	kirigami2-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtmultimedia-dev
	qt5-qtquickcontrols2-dev
	qt5-qtwebengine-dev
	samurai
	"
source="https://invent.kde.org/plasma-bigscreen/aura-browser/-/archive/$_commit/aura-browser-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
58ddd39176a023ddde9edeaf92e3c1ca7cf809e86afe440003e073ac0d0cbbd8c5c15095c8ab6b6a8bd7b5ddf238d8d1184245f3e449dfb94c5e39598df2f449  aura-browser-e93d8de146384697bf586346488395680a1dd217.tar.gz
"
